﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
  <script src="../jquery/jquery-1.7.1.min.js"></script>
    <script src="kindeditor-min.js"></script>
    <script src="lang/zh_CN.js"></script>
   

    <script type="text/javascript">
        var editor;
        $(function () {
            KindEditor.ready(function (k) {
                editor = k.create('#contents', {
                    cssPath: '/content/kindeditor/plugins/code/prettify.css',
                    uploadJson: '/KEditor',
                    fileManagerJson: '../action/file_manager_json.ashx',
                    allowFileManager: true,
                    items: ['source', '|', 'undo', 'redo', '|', 'preview',
                        'template', 'code', 'cut', 'copy', 'paste', 'plainpaste',
                        'wordpaste', '|', 'justifyleft', 'justifycenter',
                        'justifyright', 'justifyfull', 'insertorderedlist',
                        'insertunorderedlist', 'indent', 'outdent', 'subscript',
                        'superscript', 'clearhtml', 'quickformat', 'selectall',
                        'formatblock', 'fontname', 'fontsize', '|', 'forecolor',
                        'hilitecolor', 'bold', 'italic', 'underline', 'strikethrough',
                        'lineheight', 'removeformat', '|', 'insertfile',
                        'table', 'hr', 'emoticons', 'baidumap', 'pagebreak',
                        'link', 'unlink', 'image', 'fullscreen'],
                    width: 610,
                    height: 400,
                    afterCreate: function () {
                        var self = this;
                        k.ctrl(document, 13, function () {
                            self.sync();
                        });
                        k.ctrl(self.edit.doc, 13, function () {
                            self.sync();
                        });
                    }
                });
            });
        });

    </script>
</head>
<body>
    <div id="contents"></div>
</body>
</html>
